package testingtool;

import java.util.Formatter;
import java.util.Locale;

public class TestingFormatter
{

    public static void main( String[] args )
    {
        StringBuilder sb = new StringBuilder();
        Formatter formatter = new Formatter( sb, Locale.US );
        formatter.format( "%-4s %2s %2s %2s \n", "a", "b", "c", "d" );
        formatter.format( "%-4s %2s %2d %2d \n", "1", "2", 3, 4 );

        System.out.println( sb.toString() );
    }

}
